package function.consumer;

import org.junit.Test;

import java.util.stream.Stream;

/**
 * Created by lxue on 16/4/30.
 */
public class ConsumerTest {

    @Test
    public void foreach_consumer() {
        String result =
                Stream.of("a", "b", "c").filter(s -> s.equals("b")).findFirst().get();
        System.out.println(result);
    }
}
